﻿
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0014)about:internet -->
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:mssdk="winsdk" xmlns:script="urn:script" xmlns:build="urn:build" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="Description" content="The following global options affect the behavior of the debugger engine."/>
<meta name="MSHAttr" content="PreferredSiteName:MSDN"/>
<meta name="MSHAttr" content="PreferredLib:/library/windows/hardware"/>
<title>DEBUG_ENGOPT_XXX</title>

<meta name="MS-HAID" content="Structures_535cd157-af13-4576-b398-d29fee2609a4.xml"/>


<link rel="STYLESHEET" type="text/css" HREF="../common/backsdk4.css"/>





<style>
html,div { margin: 0; padding: 0;}

body {
	padding: 0px;
	margin: 0px;
	overflow: auto;
	height: 100%;
}

#winchm_template_button{
	float: right;
	width: 93px;
	top: 7px;
	position: relative;
	text-align: right;
	right: 5px;
	height: auto;
}

#winchm_template_top{
	padding: 0px;
	margin: 0px;
	border-bottom: 1px solid #9B9B9B;
	background-color: #B1CEFE;
}

#winchm_template_navigation{
	margin: 0px;
	padding-top: 7px;
	padding-left: 7px;
	padding-bottom: 3px;
	padding-right: 0px;
	font-size: 8.5pt;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	color: #585858;
}

#winchm_template_title{
	margin: 0px;
	padding-top: 4px;
	padding-left: 7px;
	padding-bottom: 7px;
	padding-right: 0px;
	font-size: 18px; 
	font-family: Verdana, Geneva, sans-serif;
	color: #363636;
}

#winchm_template_content{
	margin-top: 20px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	width: auto  !important;
	width: 100%;
}

#winchm_template_footer{
	border-width: 1px;
	border-color: #B1CEFE;
	border-top-style: solid;
	margin-top: 15px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	padding-top: 7px;
	padding-left: 0px;
	padding-bottom: 0px;
	padding-right: 0px;
	font-family: arial, helvetica, sans-serif;
	font-size: 8.5pt;
	color: #696969;
	width: auto;
	text-align: left;
}


#winchm_template_container{
	margin: 0px;
	padding: 0px;
	position: static;
	padding-bottom: 3px;
	overflow: auto;
	background-color: #FFFFFF;
}


@media print
{
#winchm_template_container{
	position: static;	
	margin: 0px;
	padding: 5px;
	
	width: auto;
	height: auto;
	overflow: auto;
}
#winchm_template_button{
visibility:hidden;
}
}

#winchm_template_navigation A:link	{text-decoration: none; color:#004080}
#winchm_template_navigation A:visited  {text-decoration: none; color: #004080}
#winchm_template_navigation A:active {text-decoration: none; color: #004080 }
#winchm_template_navigation A:hover {text-decoration: none;color: #0080FF}

A:link	{text-decoration: underline; color:#0033CC}
A:visited  {text-decoration: underline; color: #0033CC}
A:active {text-decoration: underline; color: #0033CC }
A:hover {text-decoration: underline;color: #FF0000;}
</style>
<script type="text/javascript">
function isMobile(){
Agent = window.navigator.userAgent;
if (Agent.indexOf("iPhone")>=1 || Agent.indexOf("iPad")>=1 || Agent.indexOf("iPod")>=1 || Agent.indexOf("Android")>=1){
return true;
}else{
return false;	
}

}
function d_onresize(){
if (window.navigator.userAgent.indexOf("MSIE")>=1){
document.getElementById('winchm_template_container').style.pixelWidth = document.body.offsetWidth - 3;
document.getElementById('winchm_template_container').style.pixelHeight = document.body.offsetHeight - document.getElementById('winchm_template_top').offsetHeight - 4;
}
document.getElementById('winchm_template_container').style.top = document.getElementById('winchm_template_top').offsetHeight + 'px';
}

function d_onbeforeprint(){
document.getElementById('winchm_template_container').style.width = 'auto';
document.getElementById('winchm_template_container').style.height = 'auto';
}

function d_onafterprint(){
d_onresize();
}

if(!isMobile()){

window.onload = d_onresize;
window.onresize = d_onresize;
window.onbeforeprint = d_onbeforeprint;
window.onafterprint = d_onafterprint;

document.write("<style>\n");
document.write("body {overflow: hidden;}\n");
document.write("#winchm_template_container {position: absolute;overflow: auto;top : 0px;right: 0px;bottom: 0px;left: 0px;}\n");
document.write("</style>\n");
}

</script>
</head>
<body><script language="JavaScript" type="text/JavaScript">
function syn(){
if(parent.nav.tree){
 if(parent.nav.tree.loaded){
  parent.nav.tree.selectNode(882);
 }else{
  setTimeout("syn()",500);
}
  }else{
  setTimeout("syn()",500);
  }}
if(parent!=self){
  setTimeout("syn()",100);
}else{
  parent.location.href = "../../index.htm?page=debugger/debug_engopt_xxx.htm";
}
originalOnload = window.onload;
if(originalOnload==null){
window.onload = function(){parent.contentLoaded = true;};
}else{
window.onload = function(){originalOnload();parent.contentLoaded = true;};
}
</script> 


<div id="winchm_template_top">
	<div id="winchm_template_button"><A href="debug_dump_xxx.htm" title="Previous topic"><img id="winchm_template_prev" alt="Previous topic" src="../template2/btn_prev_n.gif" border="0"></a><A href="debug_event_xxx.htm" title="Next topic"><img id="winchm_template_next" alt="Next topic" src="../template2/btn_next_n.gif" border="0"></a></div>
	<div id="winchm_template_navigation">Help &gt; 
<A href="introduction6.htm">Debugging Tools for Windows (WinDbg, KD, CDB, NTSD)</A> &gt; <A href="debugging_resources.htm">Debugging Resources</A> &gt; <A href="debugger_engine_and_extension_apis.htm">Debugger Engine and Extension APIs</A> &gt; <A href="using_the_debugger_engine_api.htm">Using the Debugger Engine API</A> &gt; <A href="debugger_engine_reference.htm">Debugger Engine Reference</A> &gt; <A href="structures_and_constants.htm">Structures and Constants</A> &gt; </div>
	<div id="winchm_template_title">DEBUG_ENGOPT_XXX</div>
</div>
<div id="winchm_template_container">
	<div id="winchm_template_content"><div id="mainSection"><p>The following global options affect the behavior of the <a href="#Bookmark192">debugger engine</a>.</p>
<p></p>
<table>
<tr>
<th>Constant</th>
<th>Description</th>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION"></a><a id="debug_engopt_ignore_dbghelp_version"></a><dl>
<dt><b>DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>The debugger engine generates a warning instead of an error if the version of the DbgHelp DLL does not match the version of the debugger engine.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_IGNORE_EXTENSION_VERSIONS"></a><a id="debug_engopt_ignore_extension_versions"></a><dl>
<dt><b>DEBUG_ENGOPT_IGNORE_EXTENSION_VERSIONS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Disable version checking for extensions.  This suppresses the debugger engine's call to <a href="#Bookmark1060"><i>CheckVersion</i></a>.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_ALLOW_NETWORK_PATHS"></a><a id="debug_engopt_allow_network_paths"></a><dl>
<dt><b>DEBUG_ENGOPT_ALLOW_NETWORK_PATHS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Network shares can be used for loading symbols and extensions. This option prevents the engine from disallowing network paths when debugging some system processes and should be used with caution.</p>
<p>This option cannot be set if DEBUG_ENGOPT_DISALLOW_NETWORK_PATHS is set.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_DISALLOW_NETWORK_PATHS"></a><a id="debug_engopt_disallow_network_paths"></a><dl>
<dt><b>DEBUG_ENGOPT_DISALLOW_NETWORK_PATHS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Network shares cannot be used for loading symbols and extensions. The engine attempts to set this option when debugging some system processes.</p>
<p>This option cannot be set if DEBUG_ENGOPT_ALLOW_NETWORK_PATHS is set.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_NETWORK_PATHS"></a><a id="debug_engopt_network_paths"></a><dl>
<dt><b>DEBUG_ENGOPT_NETWORK_PATHS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Bitwise OR of DEBUG_ENGOPT_ALLOW_NETWORK_PATHS and DEBUG_ENGOPT_DISALLOW_NETWORK_PATHS.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_IGNORE_LOADER_EXCEPTIONS"></a><a id="debug_engopt_ignore_loader_exceptions"></a><dl>
<dt><b>DEBUG_ENGOPT_IGNORE_LOADER_EXCEPTIONS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Ignore expected first-chance exceptions that are generated by the loader in certain versions of Windows.</p>
<p>For example, this option allows Windows 3.51 binaries to run when debugging Windows 3.1 and 3.5 systems.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_INITIAL_BREAK"></a><a id="debug_engopt_initial_break"></a><dl>
<dt><b>DEBUG_ENGOPT_INITIAL_BREAK</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Break into the debugger at the target's initial event.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_INITIAL_MODULE_BREAK"></a><a id="debug_engopt_initial_module_break"></a><dl>
<dt><b>DEBUG_ENGOPT_INITIAL_MODULE_BREAK</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Break into the debugger when the target loads its first module.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_FINAL_BREAK"></a><a id="debug_engopt_final_break"></a><dl>
<dt><b>DEBUG_ENGOPT_FINAL_BREAK</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Break into the debugger at the target's final event. In a live user-mode target, this is when the process exits. It has no effect in kernel mode.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_NO_EXECUTE_REPEAT"></a><a id="debug_engopt_no_execute_repeat"></a><dl>
<dt><b>DEBUG_ENGOPT_NO_EXECUTE_REPEAT</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>When given an empty command, the debugger engine does not repeat the last command.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_FAIL_INCOMPLETE_INFORMATION"></a><a id="debug_engopt_fail_incomplete_information"></a><dl>
<dt><b>DEBUG_ENGOPT_FAIL_INCOMPLETE_INFORMATION</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Prevent the debugger from loading modules whose images cannot be mapped.</p>
<p>The debugger attempts to load images when debugging minidumps that do not contain images.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_ALLOW_READ_ONLY_BREAKPOINTS"></a><a id="debug_engopt_allow_read_only_breakpoints"></a><dl>
<dt><b>DEBUG_ENGOPT_ALLOW_READ_ONLY_BREAKPOINTS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Allow the debugger engine to manipulate page protections on the target to allow for setting software breakpoints in a read-only section of memory.</p>
<p>When setting software breakpoints, the engine transparently alters the target's memory to insert an interrupt instruction.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_SYNCHRONIZE_BREAKPOINTS"></a><a id="debug_engopt_synchronize_breakpoints"></a><dl>
<dt><b>DEBUG_ENGOPT_SYNCHRONIZE_BREAKPOINTS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>In live user-mode debugging, the engine  performs extra work when inserting and removing breakpoints to ensure that all <a href="#Bookmark221">threads</a> in the target have a consistent breakpoint state at all times.</p>
<p>This option is useful when multiple threads can use the code for which the breakpoint is set. However, it can introduce the possibility of deadlocks.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_DISALLOW_SHELL_COMMANDS"></a><a id="debug_engopt_disallow_shell_commands"></a><dl>
<dt><b>DEBUG_ENGOPT_DISALLOW_SHELL_COMMANDS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Disallow executing shell commands through the debugger.</p>
<p>After this option has been set, it cannot be unset.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_KD_QUIET_MODE"></a><a id="debug_engopt_kd_quiet_mode"></a><dl>
<dt><b>DEBUG_ENGOPT_KD_QUIET_MODE</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Turn on quiet mode. For more information, see <a href="#Bookmark2030"><b>sq (Set Quiet Mode)</b></a>. </p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_DISABLE_MANAGED_SUPPORT"></a><a id="debug_engopt_disable_managed_support"></a><dl>
<dt><b>DEBUG_ENGOPT_DISABLE_MANAGED_SUPPORT</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Disables debugger engine support for managed code. If support for managed code is already in use, this option has no effect.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_DISABLE_MODULE_SYMBOL_LOAD"></a><a id="debug_engopt_disable_module_symbol_load"></a><dl>
<dt><b>DEBUG_ENGOPT_DISABLE_MODULE_SYMBOL_LOAD</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>The debugger does not load symbols for modules that are loaded while this flag is set.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_DISABLE_EXECUTION_COMMANDS"></a><a id="debug_engopt_disable_execution_commands"></a><dl>
<dt><b>DEBUG_ENGOPT_DISABLE_EXECUTION_COMMANDS</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Prevents any commands that would cause the target to begin executing.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_DISALLOW_IMAGE_FILE_MAPPING"></a><a id="debug_engopt_disallow_image_file_mapping"></a><dl>
<dt><b>DEBUG_ENGOPT_DISALLOW_IMAGE_FILE_MAPPING</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Disallows mapping of image files from disk. For example, this option disallows image mapping for memory
content during debugging of minidump files.
 This option does not affect existing mappings; it affects only subsequent attempts to map image files.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_PREFER_DML"></a><a id="debug_engopt_prefer_dml"></a><dl>
<dt><b>DEBUG_ENGOPT_PREFER_DML</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>The debugger runs DML-enhanced versions of commands
and operations by default.</p>
</td>
</tr>
<tr VALIGN="top">
<td align="left" width="40%"><a id="DEBUG_ENGOPT_DISABLESQM"></a><a id="debug_engopt_disablesqm"></a><dl>
<dt><b>DEBUG_ENGOPT_DISABLESQM</b></dt>
</dl>
</td>
<td align="left" width="60%">
<p>Disables upload of Software Quality Metrics (SQM) data.</p>
</td>
</tr>
</table>
<h2>Requirements</h2>
<table>
<tr>
<th width="30%">
<p>Header</p>
</th>
<td width="70%">
<dl>
<dt>DbgEng.h (include DbgEng.h)</dt>
</dl>
</td>
</tr>
</table>
<h2><a id="see_also"></a>See also</h2>
<dl>
<dt><a href="#Bookmark376"><b>AddEngineOptions</b></a></dt>
<dt><a href="#Bookmark397"><b>GetEngineOptions</b></a></dt>
<dt><a href="#Bookmark446"><b>RemoveEngineOptions</b></a></dt>
<dt><a href="#Bookmark451"><b>SetEngineOptions</b></a></dt></dl></div></div>	
	<div id="winchm_template_footer">Copyright &copy; 2019. All rights 
reserved. (To change the copyright info, just edit it in template.)</div>
</div>

</body>
</html>
